/**
 * @file Air_control.hharydong
 * @author harychen (2434376218@qq.com)harycxd@qq.com
 * @brief 
 * @version 0.1
 * @date 2022-03-18
 * 
 * @copyright Copyright (c) 2022
 * 
 */
#ifndef _Air_control_H_
#define _Air_control_H_
#include <stdint.h>

#define AirCon_ADDR	0X02

#define Air_control_FucGroundInit \
{ \
	&Air_control_Usart3_It_Init, \
	&Air_control_Prase, \
	&Air_control_Data_Get, \
	&Air_control_Data_Ask, \
} \

typedef struct
{
	float Temperature_cabinet;
	float Evaporator_temperature;
	float open_Temperature;
	float stop_Temperature;
	float High_temperature_alarm_point;
	float Humidity_correction_value;	
	uint16_t UpdateFrame;
}Air_control_DATA;

typedef struct
{
	void(*Air_control_Usart3_It_Init)(void);
	void(*Air_control_Prase)(uint8_t *buf,uint8_t len);
	Air_control_DATA (*Air_control_Data_Get)(void);
	void(*Air_control_Data_Ask)(void);
}T_Air_control_FUN;
extern T_Air_control_FUN Air_control_Fun;
extern Air_control_DATA Air_control_Data;

uint8_t GetAirFrame(void);
void ClearAirFrame(void);

void Air_control_Open_Air(void);
void Air_control_Close_Air(void);

#endif
